import request from '@/utils/request'
//登录接口
export const adminLoginService = ({ name, password }) => {
  return request.post('admin/login', { name, password })
}
//获取管理员基本信息,存到stores
import { adminUserStore } from '@/stores'
export const adminGetInfoService = () => {
  const adminStore = adminUserStore()
  return request.get('my/admininfo', {
    headers: {
      // 在这里设置自定义请求头字段
      Authorization: adminStore.token
    }
  })
}
